package com.hmy.equipment.service.impl;

import com.hmy.equipment.domain.HmyGas;
import com.hmy.equipment.mapper.HmyGasMapper;
import com.hmy.equipment.service.HmyGasService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 气体检测仪 业务层实现类
 *
 * @author yyh
 */
@Service
public class HmyGasServiceImpl implements HmyGasService {


    @Resource
    private HmyGasMapper gasMapper;

    @Override
    public Boolean addGas(HmyGas gas) {
        return gasMapper.addGas(gas) > 0;
    }

    @Override
    public List<HmyGas> selectGasList(HmyGas gas) {
        return gasMapper.selectGasList(gas);
    }

    @Override
    public Boolean editGas(HmyGas gas) {
        return gasMapper.editGas(gas) > 0;
    }

    @Override
    public Boolean delGas(long[] ids) {
        return gasMapper.delGas(ids) > 0;
    }

    @Override
    public HmyGas selectGasListById(Long id) {
        return gasMapper.selectGasListById(id);
    }
}
